<template>
  <div>
    <van-tabbar v-model="active" color="">
      <van-tabbar-item icon="home-o" @click="home">首页</van-tabbar-item>
      <van-tabbar-item icon="diamond-o">品牌</van-tabbar-item>
      <van-tabbar-item icon="sign" @click="fun">购物袋</van-tabbar-item>
      <van-tabbar-item icon="contact" @click="mycom">我的中免</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  methods:{
    fun(){
        this.$router.push('/login').catch(err=>{});
    },
    home(){
        this.$router.push('/home').catch(err=>{});
    },
    mycom(){
       this.$router.push('/mycom').catch(err=>{});
    }
  }
};
</script>

<style>
</style>